
import {getCateList}  from  '../../../util/axios'

const  state={
   
    cateList:[]
}
const  getters = {
    getCateList(state){
        return state.cateList
    }
}
const  mutations={
    REQ_CATELIST(state,payload){
        state.cateList=payload
    }
  
}
const  actions={

    getCateListAction({commit}){

        getCateList()
        .then(res=>{
            
          
         if(res.data.code==200){
            commit('REQ_CATELIST',res.data.list)
        
             
         }
           
            
        }
            
        )
    }
}




export  default {
state,
mutations,
getters,
actions,
namespaced:true


}